package com.lianxueda.drawing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lianxueda.drawing.domain.pojo.CheckingIn;
import com.lianxueda.drawing.mapper.CheckingInMapper;
import com.lianxueda.drawing.service.CheckingInService;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 29264
* @description 针对表【checking_in(state=1是未考勤 考勤表)】的数据库操作Service实现
* @createDate 2024-08-29 09:51:44
*/
@Service
public class CheckingInServiceImpl extends ServiceImpl<CheckingInMapper, CheckingIn>
    implements CheckingInService{

    @Resource
    private CheckingInMapper checkingInMapper;

    @Override
    public CheckingIn findByCourseIdAndSchedelesIdAndStudentId(Integer courseId, Integer schedelesId, Integer studentId) {

        return checkingInMapper.findByCourseIdAndSchedelesIdAndStudentId(courseId, schedelesId, studentId);
    }

    @Override
    public boolean removeByCourseIdAndSchedelesId(Integer courseId, Integer schedelesId, Integer studentId) {

        boolean b = checkingInMapper.removeByCourseIdAndSchedelesId(courseId, schedelesId, studentId);
        return b;
    }
}




